<template>
    <div class="gimage">
       <img :src="src" alt="" @error="error()">
    </div>
</template>
<script>
import noneImg from "@/assets/img/header.png";
export default {
    name:'Gimage',
    props: {
       srcs: {
          type: String,
          default :  noneImg
       }
  
    },
    data(){
        return{
          src:this.srcs
        }
    },
    methods:{
        error(){
            console.log(6666666666)
           this.src = noneImg
        }
    }
    
}
</script>
<style scoped>
.gimage{
    width: 100%;
    height: 100%;
}
.gimage img{
    width: 100%;
    height: 100%;
}
</style>